package com.shiguiwu.springboot3.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @description: 订单表
 * @author: stone
 * @date: Created by 2023/7/3 11:57
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springboot3.entity
 */
@Data
@Table(name = "t_order")
public class Order {

    @Id
    private Integer id;

    @Column(name = "user_id")
    private Integer userId;

    @Column(name = "user_name")
    private String userName;

    private Double price;

    private Integer theYear;
}
